package com.renjian.spring.day04.priactice.wanquanzhujie;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Component
@Aspect
public class BookProxy {

    //设置切入点
    @Before(value = "execution(* com.renjian.spring.day04.priactice.wanquanzhujie.Book.buy(..))")
    public void before(){
        System.out.println("我是前置增强方法......");
    }

}
